//
//  FactoryTreeModel.m
//  Rail
//
//  Created by huyuchen on 2018/3/19.
//  Copyright © 2018年 Hychen. All rights reserved.
//

#import "FactoryTreeModel.h"

@implementation FactoryTreeAreaModel
MJCodingImplementation

@end

@implementation FactoryTreeSectionModel
MJCodingImplementation
+ (NSDictionary *)mj_objectClassInArray {
    return @{@"area_list":[FactoryTreeAreaModel class]};
}
@end

@implementation FactoryTreeStationModel
MJCodingImplementation
+ (NSDictionary *)mj_objectClassInArray {
    return @{@"area_list":[FactoryTreeAreaModel class],
             @"section_list":[FactoryTreeSectionModel class],
             };
}
@end

@implementation FactoryTreeLineModel
MJCodingImplementation
+ (NSDictionary *)mj_objectClassInArray {
    return @{@"station_list":[FactoryTreeStationModel class]};
}

- (id)copyWithZone:(NSZone *)zone {
    FactoryTreeLineModel *line = [FactoryTreeLineModel new];
    line.lineid = self.lineid;
    line.line_name = self.line_name;
    line.line_color = self.line_color;
    line.station_list = self.station_list;
    line.isSection = self.isSection;
    return line;
}

@end

@implementation FactoryTreeModel
MJCodingImplementation
+ (NSDictionary *)mj_objectClassInArray {
    return @{@"list":[FactoryTreeLineModel class]};
}
@end
